package com.xsj.service.impl;

import com.xsj.mapper.GoodsMapper;
import com.xsj.service.GoodsService;
import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;



    public List<HashMap<String, Object>> getGoodsByMerchantId(Integer merchantId) {
        return goodsMapper.getGoodsByMerchantId(merchantId);
    }


    @Override
    public List<HashMap<String, Object>> getGoodsSpec(Integer goodsId) {
        return goodsMapper.getGoodsSpec(goodsId);
    }

    @Override
    public List<HashMap<String, Object>> getGoodsType(Integer typeId) {
        return goodsMapper.getGoodsType(typeId);
    }

    @Override
    public List<HashMap<String, Object>> getGoodsList(Integer merchantId) {
        return goodsMapper.getGoodsList(merchantId);
    }
}
